package com.x.crm.model;


import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@MappingTable(tableName = "CRM_FOLLOW_ORDER")
public class FollowOrder extends BaseObject{

	@MappingColumn(columnName = "FOLLOW_ORDER_ID", columnPk = true, columnLength = 32)
	private String followOrderId;

	@MappingColumn(columnName = "ORDER_FOLLOWER_ID")
	private String orderFollowerId;

	@MappingColumn(columnName = "ORDER_FOLLOWER_NAME")
	private String orderFollowerName;

	@MappingColumn(columnName = "ORDER_CAR_STATE")
	private Integer orderCarState; //1有效 0 无效

	@MappingColumn(columnName = "ORDER_LEVEL_ID")
	private String orderLevelId;

	@MappingColumn(columnName = "ORDER_LEVEL_TXT")
	private String orderLevelTxt;

	@MappingColumn(columnName = "ORDER_SALE_MODE")
	private Integer orderSaleMode;

	@MappingColumn(columnName = "ORDER_TIME")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date orderTime;

	@MappingColumn(columnName = "ORDER_USER_ID")
	private String orderUserId;

	@MappingColumn(columnName = "ORDER_USER_NAME")
	private String orderUserName;

	@MappingColumn(columnName = "ORDER_FIXTURE_PRICE")
	private BigDecimal orderFixturePrice;

	@MappingColumn(columnName = "ORDER_PRICE")
	private BigDecimal orderPrice;

	@MappingColumn(columnName = "ORDER_TRADE_MODE")
	private Integer orderTradeMode;

	@MappingColumn(columnName = "ORDER_LOGISTICS")
	private Integer orderLogistics;

	@MappingColumn(columnName = "INTENTION_ID")
	private String intentionId;

	@MappingColumn(columnName = "FOLLOW_ORDER_UPDATE_TIME")
	private Date followOrderUpdateTime;

	@MappingColumn(columnName = "FOLLOW_ORDER_CREATE_TIME")
	private Date followOrderCreateTime;

	@MappingColumn(columnName = "ORDER_FOLLOW_REMARK")
	private String orderFollowRemark;

	@MappingTable(tableName = "CRM_ORDER_CAR", modelClass = OrderCar.class)
	private List<OrderCar> followOrderCarList;

	@MappingTable(tableName = "CRM_FOLLOW_SERVICE", modelClass = FollowService.class)
	private List<FollowService> followServiceList;


	public String getFollowOrderId() {
		return followOrderId;
	}

	public void setFollowOrderId(String followOrderId) {
		this.followOrderId = followOrderId;
	}

	public String getOrderFollowerId() {
		return orderFollowerId;
	}

	public void setOrderFollowerId(String orderFollowerId) {
		this.orderFollowerId = orderFollowerId;
	}

	public String getOrderFollowerName() {
		return orderFollowerName;
	}

	public void setOrderFollowerName(String orderFollowerName) {
		this.orderFollowerName = orderFollowerName;
	}

	public Integer getOrderCarState() {
		return orderCarState;
	}

	public void setOrderCarState(Integer orderCarState) {
		this.orderCarState = orderCarState;
	}

	public String getOrderLevelId() {
		return orderLevelId;
	}

	public void setOrderLevelId(String orderLevelId) {
		this.orderLevelId = orderLevelId;
	}

	public String getOrderLevelTxt() {
		return orderLevelTxt;
	}

	public void setOrderLevelTxt(String orderLevelTxt) {
		this.orderLevelTxt = orderLevelTxt;
	}

	public Integer getOrderSaleMode() {
		return orderSaleMode;
	}

	public void setOrderSaleMode(Integer orderSaleMode) {
		this.orderSaleMode = orderSaleMode;
	}

	public Date getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public String getOrderUserId() {
		return orderUserId;
	}

	public void setOrderUserId(String orderUserId) {
		this.orderUserId = orderUserId;
	}

	public String getOrderUserName() {
		return orderUserName;
	}

	public void setOrderUserName(String orderUserName) {
		this.orderUserName = orderUserName;
	}

	public BigDecimal getOrderFixturePrice() {
		return orderFixturePrice;
	}

	public void setOrderFixturePrice(BigDecimal orderFixturePrice) {
		this.orderFixturePrice = orderFixturePrice;
	}

	public BigDecimal getOrderPrice() {
		return orderPrice;
	}

	public void setOrderPrice(BigDecimal orderPrice) {
		this.orderPrice = orderPrice;
	}

	public Integer getOrderTradeMode() {
		return orderTradeMode;
	}

	public void setOrderTradeMode(Integer orderTradeMode) {
		this.orderTradeMode = orderTradeMode;
	}

	public Integer getOrderLogistics() {
		return orderLogistics;
	}

	public void setOrderLogistics(Integer orderLogistics) {
		this.orderLogistics = orderLogistics;
	}

	public String getIntentionId() {
		return intentionId;
	}

	public void setIntentionId(String intentionId) {
		this.intentionId = intentionId;
	}

	public Date getFollowOrderUpdateTime() {
		return followOrderUpdateTime;
	}

	public void setFollowOrderUpdateTime(Date followOrderUpdateTime) {
		this.followOrderUpdateTime = followOrderUpdateTime;
	}

	public Date getFollowOrderCreateTime() {
		return followOrderCreateTime;
	}

	public void setFollowOrderCreateTime(Date followOrderCreateTime) {
		this.followOrderCreateTime = followOrderCreateTime;
	}

	public String getOrderFollowRemark() {
		return orderFollowRemark;
	}

	public void setOrderFollowRemark(String orderFollowRemark) {
		this.orderFollowRemark = orderFollowRemark;
	}

	public List<OrderCar> getFollowOrderCarList() {
		return followOrderCarList;
	}

	public void setFollowOrderCarList(List<OrderCar> followOrderCarList) {
		this.followOrderCarList = followOrderCarList;
	}

	public List<FollowService> getFollowServiceList() {
		return followServiceList;
	}

	public void setFollowServiceList(List<FollowService> followServiceList) {
		this.followServiceList = followServiceList;
	}
}
